﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="seal_report_update.aspx.cs" Inherits="seal_seal_report_update" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>確認シール貼付報告</title>
    <meta   http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="../css/global.css" />
    <script src="../js/jquery-1.6.min.js" type="text/javascript"></script>

</head>
<body>
    <% 
        string formtitle = "確認シール貼付報告";
        Kaidou.Model.Report rpt = (Kaidou.Model.Report)Session["report"];
        if (rpt == null) Response.Redirect("seal_report_search.aspx");
        Kaidou.Model.TrnReportd[] model_D = rpt.getReportD();
        Kaidou.Model.TrnReporth model = rpt.getReportH();
        Kaidou.Model.MstTrader trader = new Kaidou.Persister.MST_TraderPersister().getDetail(model.TraderRegNo);
        Kaidou.Persister.MST_UnionPersister dao1 = new Kaidou.Persister.MST_UnionPersister();
        Kaidou.Persister.MST_Union_BranchPersister dao2 = new Kaidou.Persister.MST_Union_BranchPersister();
        Kaidou.Model.MstUnion union = dao1.getDetail(model.UnionCode);
        
    %>
    
    <!--#include file="../public/title.aspx" --> 
<table width="600" border="0" cellspacing="0" cellpadding="0">
					<tbody><tr> 
						<td colspan="2"> 
							<p><b><font color="#666666">■報告者情報</font></b></p>
						</td>
					</tr>
				</tbody></table>								<hr size="1" width="600" align="left">								<table width="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#999999">
					<tbody><tr> 
						<td width="0" height="0"> 
							<table width="600" border="0" cellspacing="1" cellpadding="3">
								<tbody><tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>報告日</b></td>
								<td bgcolor="#FFFFFF" width="75%"><%=model.ReportDate.ToString("yyyy年MM月dd日")%></td>
								</tr>
								<tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>報告組合員コード</b></td>
									<td bgcolor="#FFFFFF" width="75%"><%=model.UnionCode %></td>
								</tr>
								<tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>報告組合員名</b></td>
									<td bgcolor="#FFFFFF" width="75%"><%=union.OfficeName%> 
									</td>
								</tr>
								<tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>支店名</b></td>
									<td bgcolor="#FFFFFF" width="75%"><%=model.BranchCode==0?"000 本店":dao2.getDetail(model.UnionCode,model.BranchCode).officename%>
									</td>
								</tr>
								<tr> 
									<td bgcolor="#DDEEFF" height="25%"><b>報告担当者</b></td>
									<td bgcolor="#FFFFFF"><%=model.ReportTantoName %></td>
								</tr>
							</tbody></table>
						</td>
					</tr>
				</tbody></table>								<%                    if (Kaidou.Model.TrnReporth.EST_COMP_CLSS_OTHER.Equals(model.EstCompClss))
                    {				%>				<table width="600" border="0" cellspacing="3" cellpadding="3">
					<tbody><tr> 
						<td><br>
							<b><font color="#666666"></font></b></td>
					</tr>
				</tbody></table>								<table width="600" border="0" cellspacing="0" cellpadding="2">
					<tbody><tr> 
						<td> 
							当社は、遊技機の販売および設置作業を下記の業者に委託し、実施しました。
						</td>
					</tr>
					<tr> 
						<td></td>
					</tr>
				</tbody></table>												<table width="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#999999">
					<tbody><tr> 
						<td width="0" height="0"> 
							<table width="600" border="0" cellspacing="1" cellpadding="3">
								<tbody><tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>委託販売会社名</b></td>
									<td bgcolor="#FFFFFF" width="75%">
									<%=model.ConsCompName %>
									</td>
								</tr>
								<tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>委託販売会社電話番号</b></td>
									<td bgcolor="#FFFFFF" width="75%">
									<%=model.ConsCompTelno %>
									</td>
								</tr>
							</tbody></table>
						</td>
					</tr>
				</tbody></table>								<%} %>								<br>				<table width="600" border="0" cellspacing="0" cellpadding="0">
					<tbody><tr> 
						<td colspan="2"> 
							<p><b><font color="#666666">■設置作業内容</font></b></p>
						</td>
					</tr>
				</tbody></table>								<hr size="1" width="600" align="left">								<table width="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#999999">
					<tbody><tr> 
						<td width="0" height="0"> 
							<table width="600" border="0" cellspacing="1" cellpadding="3">
								<tbody><tr> 
									<td bgcolor="#DDEEFF" width="25%"><b>設置ホール名</b></td> 
									<td bgcolor="#FFFFFF" width="75%" colspan="3"> 
                                        <%=model.HallName %>
									</td>
								</tr>
								<tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>設置ホール都道府県</b></td>
									<td bgcolor="#FFFFFF" width="75%" colspan="3">
									    <%
                                            string area = Resources.Resource.area;
                                            string[] areaArray = area.Split(',');
					                    %>
                                        <%=areaArray[model.HallPrefCode-1] %>
									</td>
								</tr>
								<tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>設置ホール市区町村</b></td>
									<td bgcolor="#FFFFFF" width="75%" colspan="3"> 
                                        <%=model.HallCity %>
									</td>
								</tr>
								<tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>設置ホール番地以降</b></td>
									<td bgcolor="#FFFFFF" width="75%" colspan="3"> 
                                        <%=model.HallAddress %>
									</td>
								</tr>
								<tr> 
									<td bgcolor="#DDEEFF" width="25%"><b>設置ホール電話番号</b></td> 
									<td bgcolor="#FFFFFF" width="75%" colspan="3"> 
                                        <%=model.HallTel %>
									</td>
								</tr>
								<tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>設置遊技機型式名</b></td>
									<td bgcolor="#FFFFFF" width="75%" colspan="3">
                                        <%=model.MachineName %>
                                    </td>
								</tr>
								<tr> 
									<td bgcolor="#DDEEFF" width="25%"><b>設置台数</b></td>
									<td bgcolor="#FFFFFF" width="75%" colspan="3"> 
                                        <%=model.MachineQty %>台 </td>
								</tr>
								<tr> 
									<td width="25%" nowrap="" bgcolor="#DDEEFF"><b>設置日</b></td>
									<td bgcolor="#FFFFFF" width="75%" colspan="3"> 
                                        <%="20"+model.EstYear+"年"+model.EstMonth+"月"+model.EstDay+"日" %>
										&nbsp; </td>
								</tr>
								<tr> 
									<td bgcolor="#DDEEFF" width="25%"><b>販売業者登録証番号</b></td>
									<td bgcolor="#FFFFFF" width="25%"> 
										第&nbsp;  
                                        <%=model.TraderRegNo.Substring(0,2) %> － <%=model.TraderRegNo.Substring(2,5) %>
										号</td>
									<td bgcolor="#DDEEFF" width="20%"><b>設置業者名</b></td>
									<td bgcolor="#FFFFFF" width="30%">
                                       <%=trader.TraderName %>
                                    </td>
								</tr>
								<tr> 
									<td bgcolor="#DDEEFF" width="25%"><b>取扱主任者証番号</b></td>
									<td bgcolor="#FFFFFF" width="25%"> 
										第&nbsp; <%=model.ChiefNo.Substring(0,2) %> － <%=model.ChiefNo.Substring(2,4)%>
										号</td>
									<td bgcolor="#DDEEFF" width="20%"><b>取扱主任者名</b></td>
									<td bgcolor="#FFFFFF" width="30%">
                                        <%=model.ChiefName %>   
                                     </td>
								</tr>
								<tr> 
									<td bgcolor="#DDEEFF"><b>作業従事者名<br>
										</b></td>
									<td bgcolor="#FFFFFF" colspan="3">
                                        <%=model.Worker1Name %> <%=model.Worker2Name %>
                                        <%=model.Worker3Name %> <%=model.Worker4Name %>
                                        <%=model.Worker5Name %> <%=model.Worker6Name %>
									</td>
								</tr>
							</tbody></table>
						</td>
					</tr>
				</tbody></table>								<br>				<table width="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#999999">
					<tbody><tr> 
						<td width="0" height="0"> 
							<table width="600" border="0" cellspacing="1" cellpadding="3">
								<tbody><tr> 
									<td width="50%" align="center" nowrap="" bgcolor="#DDEEFF"><b>確認シール番号</b></td>
									<td width="25%" align="center" nowrap="" bgcolor="#DDEEFF"><b>新台</b></td>
									<td width="25%" align="center" nowrap="" bgcolor="#DDEEFF"><b>中古台</b></td>
								</tr>
						
						        <%							        int i;
                                    for (i = 0; i < 5; i++)
                                    {
                                        Kaidou.Model.TrnReportd md = model_D[i];
                                        if (md == null) continue;
                                        						        %>
								<tr> 
									<td align="center" bgcolor="#FFFFFF">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tbody><tr>
												<td width="19%">&nbsp;</td>
												<td width="62%">No <%=md.SealStrNo %>～<%=md.SealEndNo %></td>
												<td width="19%">&nbsp;</td>
											</tr>
										</tbody></table>
									</td>
									<td align="center" bgcolor="#FFFFFF">
									<%= Kaidou.Model.TrnReporth.MACHINE_CLSS_NEW.Equals(md.MachineClss) ? "●":" " %> 
									</td>
									<td align="center" bgcolor="#FFFFFF">
								    <%= Kaidou.Model.TrnReporth.MACHINE_CLSS_OLD.Equals(md.MachineClss) ? "●" : " "%> 
								    </td>
								</tr>
								<%} %>
						
							</tbody></table>
						</td>
					</tr>
				</tbody></table>								<br>								<table width="600" border="0" cellspacing="0" cellpadding="10">
					<tbody><tr> 
						<td> <font color="#FF0000"><b>上記内容で報告します。</b></font> 
						</td>
					</tr>
				</tbody></table>								<br>								<table width="600" border="0" cellpadding="0" cellspacing="0">
					<tbody><tr> 
						<td>
                        <form id="Form1" name="F_BODY"  runat="server" >
						    <asp:Button  ID="sb" Text="更新確定" OnClick="update_confirm" runat="server" />
							&nbsp; 
							<input type="button" value="戻る" onclick="history.back();">
                        </form>
					</td></tr>
				</tbody></table>    <!--#include file="../public/footer.aspx" -->   </body>
</html>